import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class StatusController 
{
	private StatusView sv;
	private StatusModel sm;
	
	public StatusController(StatusView sv, StatusModel sm)
	{
		this.sv = sv;
		this.sm = sm;
		
		sv.addOKListener(new OKListener());
	}
	
	private class OKListener implements ActionListener
	{
	
		public void actionPerformed(ActionEvent e) 
		{
			sm.setPace(sv.getPaceIndex());
			sm.setRation(sv.getRationIndex());
		}

		
	}
}
